<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>CodeIgniter &rsaquo; Unit Testing &rsaquo; Index</title>
        <style>
            body {
                font: 0.75em "Helvetica Neue", Arial, Helvetica, sans-serif;
                color: #000;
                margin: 0;
                padding: 0;
            }
            code, pre {
                background-color: #f9f9f9;
                border: 1px solid #D0D0D0;
                color: #002166;
                display: block;
                font-family: "Bitstream Vera Sans Mono", monospace;
                font-size: 12px;
                margin: 14px 5px 14px 5px;
                padding: 12px 10px 12px 10px;
            }
            #header {
                background: #eee;
                border-bottom: 1px solid #ddd;
                padding: 10px;
            }
            #header h2 {
                color: #900;
                margin: 0;
            }
            #nav {
                margin: 10px 20px;
            }


            #report {
                padding: 50px 0 0 0;
                margin: 0 20px 20px;
                position: relative;
            }
            .test {
                border-bottom: 1px solid #ddd;
                padding: 5px 0;
            }
            .test h3 {
                display: inline;
                font-weight: normal;
            }
            .test.pass h3 { color: #090; }
            .test.fail h3 { color: #e00; }
            .test div.result {
                color: #fff;
                float: left;
                font-weight: bold;
                margin-right: 8px;
                text-align: center;
                width: 55px;
            }
            .test.fail div.result, .summary.fail {
                background: #c00;
                border: 1px solid #900;
            }
            .test.pass div.result, .summary.pass {
                background: #0a0;
                border: 1px solid #080;
            }
            .summary {
                color: #fff;
                font-weight: bold;
                font-size: 1.5em;
                padding: 10px;
                margin: 10px 0;
                position: absolute;
                top: 0;
            }
            .test div.time {
                background-color: #f9f9f9;
                border: 1px solid #D0D0D0;
                color: #666 !important;
                float: left;
                font: 1.15em 'Courier New', monospace;
                margin-left: -65px;
                text-align: center;
                width: 55px;
            }
            .test .details {
                padding-top: 5px;
                padding-left: 65px;
            }
            .test.pass .details {
                color: #999;
            }
            .test.fail .details {
                color: #444;
            }
            .test.fail .details strong {
                color: #900;
            }
            form {
                margin: 0;
                padding: 0;
                display: inline;
            }
            #running {
                display:none;
                border:				#999 1px solid;
                line-height: 30px;
                vertical-align:middle;
                background-color:	#fff;
                padding:			20px 20px 12px 20px;
            }

            #running img {
                margin:10px;
                width:15px;
                height:15px;
                vertical-align:middle;
            }

        </style>

    </head>
    <body>
        <div id="header">
            <h2>CodeIgniter &rsaquo; Unit Testing &rsaquo; Index</h2>
        </div>

        <div id="nav">
            <?php echo form_open($form_url); ?>
            <input type="hidden" name="all" value="1" />
            <input type="submit" value="All" />
            <?php echo form_close(); ?>
            <?php echo form_open($form_url); ?>
            <input type="hidden" name="customer" value="1" />
            <input type="submit" value="Customer" />
            <?php echo form_close(); ?>
            <?php echo form_open($form_url); ?>
            <input type="hidden" name="unit" value="1" />
            <input type="submit" value="Unit" />
            <?php echo form_close(); ?>

        </div>


        <div id="report">
            <?php
                ob_start();
                $test_suite->run(new MyReporter());
                ob_end_flush();
            ?>
        </div>

    </body>
</html>